package com.taxshare.operation.entity;


import io.swagger.annotations.ApiModel;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.taxshare.mybatis.entity.BaseEntity;

/**
 * 通用码表,明细表
 *
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
@TableName("t_operation_common_code_detail")
@ApiModel(description = "通用码表,明细表")
public class CodeDetailEntity extends BaseEntity implements Serializable {

	@TableId("uuid")
    private String uuid;

	//编码
	@TableField(value="code")
    private String code;
	
	//名称
	@TableField(value="name")
    private String name;

	//拓展字段1
	@TableField(value="expand_field_one")
    private String expandFieldOne;

	//级联编码,其他表的code
	@TableField(value="parent_code")
    private String parentCode;
	
	//父code
	@TableField(value="current_collection_code")
    private String currentCollectionCode;
	
	//排序字段,升序
	@TableField(value="sort")
    private int sort = 0;
	
	//有效标志Y有效,N失效
	@TableField(value="expire")
    private String expire = "Y";

	@TableField(exist=false)
	private String describes;
}
